package Card;

import java.util.Scanner;

import GameElement.GameCard;
import GameElement.GamePlayer;

public class EventCard extends GameCard {
	private int[][] card_score = new int[6][4];					// Create card score board to identify each role get different score.
	private String[][] card_answer = new String[6][4];			// Create card answer board to store each role get different answer. 

	/**
	 * Inherit GameCard class and 
	 * Initialize the card score board and card answer board
	 * @param card_info
	 */
	public EventCard(String[] card_info) {
		super(new String[] {card_info[0],card_info[1]});
		int count = 2;
		for(int i=0; i<6; i++){
			for(int j=0; j<4; j++){
				card_answer[i][j] = new String(card_info[count++]);
				card_score[i][j] = new Integer(card_info[count++]);
			}
		}
	}
	
	/**
	 * Return card type name
	 * @return Card type name
	 */
	public String getType(){
		return "EVENT";
	}
	
	/**
	 * Return card score board
	 * @return Card score board
	 */
	public int[][] getCardSocre(){
		return card_score;
	}
	
	/**
	 * Return card answer board
	 * @return Card answer board
	 */
	public String[][] getCardAnswer(){
		return card_answer;
	}
	
}